package cn.seecoder.ai.dao;

import cn.seecoder.ai.model.po.Answer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author DingXiaoyu
 * @date 2023/5/8 15:04
 */
public interface AnswerRepository extends JpaRepository<Answer, Integer>, JpaSpecificationExecutor<Answer> {
    List<Answer> findByOrigin(Integer origin);

    void deleteAllByOrigin(Integer origin);
}
